package com.cyclinggle.cloud;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SearchFeignController {
	
	@Autowired
	private HelloFeignService helloFeignService;
	
	@GetMapping(value = "/search/github")
	public ResponseEntity<byte[]> search(@RequestParam("param") String param) {
		return helloFeignService.search(param);
	}

}
